<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>左右比例布局</title>
    <style>
        .box {
            display: flex;
        }

        .left {
            height: 600px;
            background-color: aquamarine;
            flex: 1;
        }

        .right {
            height: 600px;
            background-color: bisque;
            flex: 2;
        }
    </style>
</head>

<body>
    <div class="box">
        <div class="left"></div>
        <div class="right"></div>
    </div>
</body>

</html>
